{% extends "EMNewsBundle::layout.html.twig" %}
{% block title 'News - Users' %}

{% block middlenav%}
<div class="middleNav">
    	<ul>
        	<li class="iNew"><a href="#" title=""><span>Add New</span></a></li>
		</ul>
    </div>
{% endblock%}
{% block content %}
   <div class="title"><h5>All Users  </h5></div>
    <!-- Dynamic table -->
	
        <div class="table" id="table">
		
            <div class="head"><h5 class="iFrames">User list</h5> </div>
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Name</th>
                        <th>Lastname</th>
                        <th>Email</th>
                        <th>Username</th>
                        <th>Actions</th>
                        
                    </tr>
                </thead>
                <tbody>
                   {% for user in users %}
                   
					   <tr class="gradeA">
                       <td class="center">{{user.id}}</td>
                       <td class="center">{{user.firstname}}</td>
                       <td class="center">{{user.lastname}}</td>
                       <td class="center">{{user.email}}</td>
                       <td class="center">{{user.username}}</td>
                        <td class="center">
                        <a href="#"><img src="{{asset('bundles/news/images/icons/color/pencil.png')}}" alt=""></a> &nbsp;
                        <a href="#"><img src="{{asset('bundles/news/images/icons/color/cross.png')}}" alt=""></a> &nbsp;
                        <a href="{{ path('em_user_language_settings',{'username':user.username}) }}"><img src="{{asset('bundles/news/images/icons/color/balloon-ellipsis.png')}}" alt="Select languages" title="Select languages"></a> &nbsp;
                        </td>
						
                    </tr>
				
					{% endfor %}
                </tbody>
            </table>
              
		</div>    
     
{% endblock %}
